package com.shuang.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbGoodsFormatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbGoodsFormatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGfIdIsNull() {
            addCriterion("gf_id is null");
            return (Criteria) this;
        }

        public Criteria andGfIdIsNotNull() {
            addCriterion("gf_id is not null");
            return (Criteria) this;
        }

        public Criteria andGfIdEqualTo(Long value) {
            addCriterion("gf_id =", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdNotEqualTo(Long value) {
            addCriterion("gf_id <>", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdGreaterThan(Long value) {
            addCriterion("gf_id >", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdGreaterThanOrEqualTo(Long value) {
            addCriterion("gf_id >=", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdLessThan(Long value) {
            addCriterion("gf_id <", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdLessThanOrEqualTo(Long value) {
            addCriterion("gf_id <=", value, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdIn(List<Long> values) {
            addCriterion("gf_id in", values, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdNotIn(List<Long> values) {
            addCriterion("gf_id not in", values, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdBetween(Long value1, Long value2) {
            addCriterion("gf_id between", value1, value2, "gfId");
            return (Criteria) this;
        }

        public Criteria andGfIdNotBetween(Long value1, Long value2) {
            addCriterion("gf_id not between", value1, value2, "gfId");
            return (Criteria) this;
        }

        public Criteria andCIdIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andCIdIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andCIdEqualTo(Long value) {
            addCriterion("c_id =", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotEqualTo(Long value) {
            addCriterion("c_id <>", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThan(Long value) {
            addCriterion("c_id >", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdGreaterThanOrEqualTo(Long value) {
            addCriterion("c_id >=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThan(Long value) {
            addCriterion("c_id <", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdLessThanOrEqualTo(Long value) {
            addCriterion("c_id <=", value, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdIn(List<Long> values) {
            addCriterion("c_id in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotIn(List<Long> values) {
            addCriterion("c_id not in", values, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdBetween(Long value1, Long value2) {
            addCriterion("c_id between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andCIdNotBetween(Long value1, Long value2) {
            addCriterion("c_id not between", value1, value2, "cId");
            return (Criteria) this;
        }

        public Criteria andGfParamDataIsNull() {
            addCriterion("gf_param_data is null");
            return (Criteria) this;
        }

        public Criteria andGfParamDataIsNotNull() {
            addCriterion("gf_param_data is not null");
            return (Criteria) this;
        }

        public Criteria andGfParamDataEqualTo(String value) {
            addCriterion("gf_param_data =", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataNotEqualTo(String value) {
            addCriterion("gf_param_data <>", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataGreaterThan(String value) {
            addCriterion("gf_param_data >", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataGreaterThanOrEqualTo(String value) {
            addCriterion("gf_param_data >=", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataLessThan(String value) {
            addCriterion("gf_param_data <", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataLessThanOrEqualTo(String value) {
            addCriterion("gf_param_data <=", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataLike(String value) {
            addCriterion("gf_param_data like", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataNotLike(String value) {
            addCriterion("gf_param_data not like", value, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataIn(List<String> values) {
            addCriterion("gf_param_data in", values, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataNotIn(List<String> values) {
            addCriterion("gf_param_data not in", values, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataBetween(String value1, String value2) {
            addCriterion("gf_param_data between", value1, value2, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfParamDataNotBetween(String value1, String value2) {
            addCriterion("gf_param_data not between", value1, value2, "gfParamData");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeIsNull() {
            addCriterion("gf_create_time is null");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeIsNotNull() {
            addCriterion("gf_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeEqualTo(Date value) {
            addCriterion("gf_create_time =", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeNotEqualTo(Date value) {
            addCriterion("gf_create_time <>", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeGreaterThan(Date value) {
            addCriterion("gf_create_time >", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("gf_create_time >=", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeLessThan(Date value) {
            addCriterion("gf_create_time <", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("gf_create_time <=", value, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeIn(List<Date> values) {
            addCriterion("gf_create_time in", values, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeNotIn(List<Date> values) {
            addCriterion("gf_create_time not in", values, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeBetween(Date value1, Date value2) {
            addCriterion("gf_create_time between", value1, value2, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("gf_create_time not between", value1, value2, "gfCreateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeIsNull() {
            addCriterion("gf_update_time is null");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeIsNotNull() {
            addCriterion("gf_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeEqualTo(Date value) {
            addCriterion("gf_update_time =", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeNotEqualTo(Date value) {
            addCriterion("gf_update_time <>", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeGreaterThan(Date value) {
            addCriterion("gf_update_time >", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("gf_update_time >=", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeLessThan(Date value) {
            addCriterion("gf_update_time <", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("gf_update_time <=", value, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeIn(List<Date> values) {
            addCriterion("gf_update_time in", values, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeNotIn(List<Date> values) {
            addCriterion("gf_update_time not in", values, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("gf_update_time between", value1, value2, "gfUpdateTime");
            return (Criteria) this;
        }

        public Criteria andGfUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("gf_update_time not between", value1, value2, "gfUpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}